package com.seu.githubcn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("pull_request")
public class PullRequest {
    @TableId(type = IdType.AUTO)
    private Integer prId;
    private String prTitle;
    private String prContent;
    private Integer sourceRepoId;
    private Integer targetRepoId;
    private String sourceBranch;
    private String targetBranch;
    private Boolean hasMerged;
    private Integer mergerId;
    private Integer prStatus;
    @TableField(exist = false)
    private String sourceRepo;
    @TableField(exist = false)
    private String targetRepo;
    @TableField(exist = false)
    private String postName;
    static public class Status {
        public static Integer OPEN = 1;
        public static Integer CLOSE = 2;
        public static Integer MERGED = 3;
    }
}
